package com.multicampus.simplewiki.ctrl;

import java.util.Collection;
import java.util.List;

import com.multicampus.simplewiki.model.Document;
import com.multicampus.simplewiki.model.TrackBack;
import com.multicampus.simplewiki.vo.SearchListVO;
import com.multicampus.simplewiki.vo.SearchResultVO;

public interface DocumentManager {
	public abstract Document insertDocument(Document document, String parentId);

	public abstract List<Document> findDocumentList();

	public abstract Document updateDocument(Document document, String parentId);

	public abstract Document findDocument(int documentId);

	public abstract int deleteDocument(int documentId);
	
	public abstract SearchListVO<SearchResultVO> searchDocument(String searchString, int currentPage, int count) throws Exception;
	
	public abstract Document findByTitle(String title);
	
	public abstract TrackBack addTrackBack(int documentId, TrackBack trackback);
	
	public abstract Collection<TrackBack> findTrackBackByDocumentId(int documentId);
}